College Physics ›› 2018, Vol. 37 ›› Issue (3): 63-68.doi: 10.16854 /j.cnki.1000-0712.170297

Previous Articles     Next Articles

Generating three-dimensional Maxwell distribution using Monte Carlo method

MO Yu-yu,LI Sheng-zhi   

  1. Department of Physics,Beijing Normal University,Beijing 100875,China
  • Received:2017-05-22 Revised:2017-10-09 Online:2018-03-20 Published:2018-03-20

Abstract: Generating two-dimensional Maxwell distribution using Monte Carlo method has already been presented in some numeric textbooks.Putting three-dimensional spherical surface random vectors in the process that representing the collision between molecules three-dimensional Maxwell distribution can thus form.The corresponding code is in MATLAB language and the comparison between the numerical result and the theoretical expectation is made.

Key words: three-dimensional Maxwell distribution, Monte Carlo method, ideal gas